package com.kingyun.gpsinspection.purificationservice.services.jsm.innerservice.impl.reportinfo;/**
 * Created by Administrator on 2017/3/25.
 */

import com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm.ReportinfoMapper;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Reportinfo;
import com.kingyun.gpsinspection.purificationservice.facade.service.jsm.reportinfo.JsmReportinfoService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author 卢曼成
 * @Description 汇报点内容接口实现类
 * @CreateDateTime 2017-03-25 13:06
 **/

public class JsmReportinfoServiceImpl implements JsmReportinfoService {
    @Autowired
    private ReportinfoMapper reportinfoMapper;

    /**
     * 根据ID删除
     *
     * @param reportinfoId
     * @return
     */
    @Override
    public int deleteByPrimaryKey(Long reportinfoId) {
        return reportinfoMapper.deleteByPrimaryKey(reportinfoId);
    }

    /**
     * 添加
     *
     * @param record
     * @return
     */
    @Override
    public int insert(Reportinfo record) {
        return reportinfoMapper.insert(record);
    }

    /**
     * 非空添加
     *
     * @param record
     * @return
     */
    @Override
    public int insertSelective(Reportinfo record) {
        return reportinfoMapper.insertSelective(record);
    }

    /**
     * 根据ID查询
     *
     * @param reportinfoId
     * @return
     */
    @Override
    public Reportinfo selectByPrimaryKey(Long reportinfoId) {
        return reportinfoMapper.selectByPrimaryKey(reportinfoId);
    }

    /**
     * 非空修改
     *
     * @param record
     * @return
     */
    @Override
    public int updateByPrimaryKeySelective(Reportinfo record) {
        return reportinfoMapper.updateByPrimaryKeySelective(record);
    }

    /**
     * 修改
     *
     * @param record
     * @return
     */
    @Override
    public int updateByPrimaryKey(Reportinfo record) {
        return reportinfoMapper.updateByPrimaryKey(record);
    }

    /**
     * @param record
     * @return List<Reportinfo>
     * @Author 卢曼成
     * @Description 根据条件查询集合
     * @CreateDateTime 2017/3/24 19:38
     **/
    @Override
    public List<Reportinfo> selectByParamList(Reportinfo record) {
        return reportinfoMapper.selectByParamList(record);
    }
}
